import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/login.vue'
import zhuye from '../views/zhuye.vue'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  redirect: '/login'
},
{
  path: '/login',
  component: login
},
{
  path: '/zhuye',
  redirect: '/Home',
},
{
  path: '/zhuye',
  name: 'zhuye',
  component: zhuye,
  children: [{
    path: '/Home',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    // 轮播图管理
    path: '/slideshow',
    name: "Slideshow",
    component: () => import('../views/Slideshow.vue')
  },
  {
    // 课程管理
    path: '/course',
    name: "Course",
    component: () => import('../views/Course.vue')
  }, {
    // 教育管理
    path: '/education',
    name: "Education",
    component: () => import('../views/Education.vue')
  }, {
    // 活动列表
    path: '/activity',
    name: "Activity",
    component: () => import('../views/Activity.vue')
  }, {
    // 明星教师
    path: '/star',
    name: "Star",
    component: () => import('../views/Star.vue')
  }, {
    // 订单管理
    path: '/orderForm',
    name: "OrderForm",
    component: () => import('../views/OrderForm.vue')
  }, {
    // 用户管理
    path: '/user',
    name: "User",
    component: () => import('../views/User.vue')
  }, {
    // 财务管理
    path: '/finance',
    name: "Finance",
    component: () => import('../views/Finance.vue')
  }, {
    // 个人资料
    path: '/service',
    name: "Service",
    component: () => import('../views/Service.vue')
  }, {
    // 通用设置
    path: '/general',
    name: "General",
    component: () => import('../views/General.vue')
  }, {
    // 关于我们
    path: '/gy',
    name: "Gy",
    component: () => import('../views/Gy.vue')
  }, {
    // 员工管理
    path: '/essay',
    name: "Essay",
    component: () => import('../views/Essay.vue')
  }, {
    // 角色管理
    path: '/role',
    name: "Role",
    component: () => import('../views/Role.vue')
  }, {
    // 操作日志
    path: '/operation',
    name: "Operation",
    component: () => import('../views/Operation.vue')
  }, {
    // 新增轮播图
    path: '/xzlbt',
    name: "xzlbt",
    component: () => import('../views/xzlbt.vue')
  }, {
    // 新增文章
    path: '/article',
    name: "Article",
    component: () => import('../views/Article.vue')
  }, {
    // 学习中
    path: '/xdd',
    name: "xdd",
    component: () => import('../views/xdd.vue')
  }, {
    // 用户详情
    path: '/UserDetails',
    name: "UserDetails",
    component: () => import('../views/UserDetails.vue')
  }, {
    // 提交订单
    // path:'/place',
    path: '/place/:id', // /place/123 456
    name: "place",
    component: () => import('../views/place.vue'),
  },
  {
    //新增教育头条的回收站
    path: '/exercycle',
    name: "EdRecycle",
    component: () => import('../views/EdRecycle.vue')
  },
  {
    //新增明星教师的回收站
    path: '/guizhou',
    name: "guizhou",
    component: () => import('../views/huishou.vue')
  },
  {
    //新增活动列表的回收站
    path: '/ActRecycle',
    name: "ActRecycle",
    component: () => import('../views/ActRecycle.vue')
  }, {
    //新增活动
    path: '/NewActiv',
    name: "NewActiv",
    component: () => import('../views/NewActiv.vue')
  }, {
    //新增报名信息ActivityReg
    path: '/ActivityReg',
    name: "ActivityReg",
    component: () => import('../views/ActivityReg.vue')
  },
  {
    //新增教师
    path: '/xzjs',
    name: "xzjs",
    component: () => import('../views/xzjs.vue')
  },
  {
    //新增课程
    path: '/xzkc',
    name: "xzkc",
    component: () => import('../views/xzkc.vue')
  },{
     //新增明星教师回收站
     path: '/huishou',
     name: "huishou",
     component: () => import('../views/huishou.vue')
  }]
}
]

const router = new VueRouter({
  routes
})
export default router